import request from '@/utils/request'

//封装获取企业部门列表
export function companyDepartment() {
    return request({
        url: '/company/department'
    })
}
//获得员工简单信息
export function sysUserSimple() {
    return request({
        url: '/sys/user/simple'
    })
}

//添加部门接口
export function companyDepartmentPost(data) {
    return request({
        url: '/company/department' + data.id,
        method: 'post',
        data
    })
}
//编辑部门接口
export function companyDepartmentPut(data) {
    return request({
        url: '/company/department' + data.id,
        method: 'put',
        data
    })
}
// 删除部门
export function companyDepartmentDelete(id) {
    return request({
        url: '/company/department/' + id,
        method: 'delete'
    })
}